#!/usr/bin/env python3


class FrogClass:
    """
    frog
    """

    def __init__(self, name=None):
        self.name = name
        self.mouth = set()

    def say(self, msg):
        if self.name:
            print(self.name, 'says:', msg)
        else:
            print('frogs say', msg)

    def bite(self, what):
        print(self, 'bites', what)
        self.put_in_mouth(what)

    def put_in_mouth(self, what):
        self.mouth.add(what)

    def chow(self):
        print(self, 'chows on', ', '.join([f for f in self.mouth]))

    def swallow(self):
        print(self, 'swallows', ', '.join([f for f in self.mouth]))
        self.mouth = set()
